package base

import (
	"github.com/gogf/gf/frame/g"
	"github.com/gogf/gf/frame/gmvc"
)

type Controller struct {
	gmvc.Controller
}

func (c *Controller) Index()  {

	//h := c.Request.Header

	//g.Dump(h)

	c.View.Display("admin/base/index.html")
}

func (c *Controller) Test()  {

	//h := c.Request.Header
	//
	//g.Dump(h)

	c.View.Display("admin/base/test.html")
}
func (c *Controller) Content()  {

	//h := c.Request.Header
	//
	//g.Dump(h)

	c.View.Display("admin/base/content.html")
}

func (c *Controller) Content1()  {

	//h := c.Request.Header
	//
	//g.Dump(h)

	c.View.Display("admin/base/content.html")
}
func (c *Controller) Admin1()  {

	c.Response.WriteJson("aaaaa")

}
func (c *Controller) Admin2()  {

	//h := c.Request.Header
	//
	//g.Dump(h)

	//c.Request.Router.Uri = "/base/test"

	c.Response.ResponseWriter.WriteHeader(200)
	//c.Response.ResponseWriter.Header().Set("Location","/base/test")

	c.Response.WriteJson(g.Map{"code":1001,"msg":"logout"})
	c.Exit()


	//c.View.Display("home/base/admin.html")
}